package com.chang.pojo;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;

public class User {
    private String keywords;
    private String id;
    private String name;
    private boolean state;

    public User() {
        state = true;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public void changeState() {
        if (state) {
            state = false;
        } else {
            state = true;
        }
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getKeywords() {
        return keywords;
    }

    public boolean getState() {
        return state;
    }

    @Override
    public String toString() {

        return name + "&" + id + "&" + keywords + "&" + (state?1:0);
    }
}
